<template>
  <!-- <van-cell is-link @click="showPopup"></van-cell> -->
  <van-popup v-model:show="show" @click="showPopup" style="width: 90%; background: transparent; "><img
      style="width: '80%'"
      src="http://www.higuang365.com/public/images/common/activity/2303/alert10.jpg" /></van-popup>
</template>
<script lang="ts">
import { defineComponent, ref } from "vue";

export default defineComponent({
  setup() {
    const show = ref(
      JSON.parse(sessionStorage.getItem("alertshow") as string)
        ? !JSON.parse(sessionStorage.getItem("alertshow") as string)
        : true
    );
    sessionStorage.setItem("alertshow", JSON.stringify(true));
    const showPopup = () => {
      show.value =
        !JSON.parse(sessionStorage.getItem("alertshow") as string) && false;
    };
    return {
      show,
      showPopup,
    };
  },
});
</script>
